legal duty

Noun
  1. acts which the law requires be done or forborne
legal duty
A citizen fulfills their legal duty by serving on a jury.